<?php
require_once(dirname(__FILE__)."/../core/safeParam.php");
require_once('../includes/config.php');
require_once('../core/database.php');
require_once('../core/global-options.php');
$module   = new module();
$function = $_GET['function'];
switch ($function) {
  case "add":
    $module->Add($_POST);
    break;
  case "edit":
    $module->Edit($_POST);
    break;
  case "delete":
    $module->Delete($_GET);
    break;
  case "add-option":
    $module->AddOption($_POST);
    break;
  case "edit-option":
    $module->EditOption($_POST);
    break;
  case "delete-option":
    $module->DeleteOption($_GET);
    break;
} //$function
?>
